using System.Collections.ObjectModel;

namespace NCql.Parser
{
    public class ModifierList : Collection<Modifier>
    {
        public Modifier this[string modifierName]
        {
            get
            {
                foreach (Modifier m in this)
                {
                    if (m.ModifierName.ToUpperInvariant() == modifierName.ToUpperInvariant())
                        return m;
                }
                return null;
            }
        }
    }
}